﻿
namespace Vampirewal.BlogCore.TestWebApi;

/// <summary>
/// 更新说明页面
/// </summary>
public class UpdateDescriptionPage : PageBase
{
    /// <summary>
    /// 
    /// </summary>
    public UpdateDescriptionPage()
    {
        
    }

    public override bool IsCache => false;

    public override string Title => "更新说明";
    public override string MenuGroup => "说明";
    public override int MenuGroupSort => 0;
    public override int Sort => 2;
    public override List<Tag> Tags => new List<Tag>()
    {
        App.CreateTag("重要", TagType.Success)
    };
    public override List<PartContainer> PartContainers => new List<PartContainer>()
    {
        App.CreatePartContainer("说明", child =>
        {
            App.CreateTip("TIP", TipType.Success, items =>
            {
                App.CreateText("1.0.1~1.0.5为初次发布，逐次更新内容从1.0.6版本开始").AddToChildren(items);

            }).AddToChildren(child);
        }),

        App.CreatePartContainer("内容", child =>
        {
            App.CreateCollapse(items =>
            {
                App.CreateCollapseItem( "1.0.17版本", () =>
                {
                    return App.CreateDescriptions("20240920 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","调整详细页面中右侧el-anchor在多层级中的显示").AddToChildren(it);


                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);


                App.CreateCollapseItem( "1.0.16版本", () =>
                {
                    return App.CreateDescriptions("20240920 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","新增PartContainer中的HLevel，用于区分h层级").AddToChildren(it);


                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);

                App.CreateCollapseItem( "1.0.15版本", () =>
                {
                    return App.CreateDescriptions("20240920 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","新增登陆页面和登陆鉴权开关").AddToChildren(it);
                        

                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);

                App.CreateCollapseItem( "1.0.14版本", () =>
                {
                    return App.CreateDescriptions("20240726 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","调整引用JS的加载方式，以前只有CDN加载，现在可以通过配置文件内的选项来控制是否通过本地加载").AddToChildren(it);
                        App.CreateDescriptionItem("2","新增Card卡片控件").AddToChildren(it);
                        App.CreateDescriptionItem("3","新增Carousel走马灯控件").AddToChildren(it);
                        App.CreateDescriptionItem("4","BlogOptions配置中新增选项控制js加载方式").AddToChildren(it);

                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);

                App.CreateCollapseItem( "1.0.13版本", () =>
                {
                    return App.CreateDescriptions("20240724 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","重新调整html加载顺序，避免左侧菜单加载顺序出问题").AddToChildren(it);
                        App.CreateDescriptionItem("2","重新调整配置文件加载的代码").AddToChildren(it);
                        App.CreateDescriptionItem("3","新增连接数据库DLL，懒得发Nuget了，看个人喜欢用什么方式连接数据库读写数据").AddToChildren(it);
                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);

                App.CreateCollapseItem( "1.0.12版本", () =>
                {
                    return App.CreateDescriptions("20240719 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","重新调整程序的启动方式").AddToChildren(it);
                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);

                App.CreateCollapseItem( "1.0.11版本", () =>
                {
                    return App.CreateDescriptions("20240718 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","调整锚点链接的样式").AddToChildren(it);
                        App.CreateDescriptionItem("2","新增Table控件，具体使用查看TestPage页面").AddToChildren(it);
                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);

                App.CreateCollapseItem( "1.0.10版本", () =>
                {
                    return App.CreateDescriptions("20240704 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","拆分表单字段属性特性FormPropertyAttribute").AddToChildren(it);
                        App.CreateDescriptionItem("2","新增表单字段属性特性FormInputAttribute").AddToChildren(it);
                        App.CreateDescriptionItem("3","新增表单字段属性特性FormNumInputAttribute").AddToChildren(it);
                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);

                App.CreateCollapseItem( "1.0.9版本", () =>
                {
                    return App.CreateDescriptions("20240703 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","新增表单控件(详细可以查看TestPage中)").AddToChildren(it);
                        App.CreateDescriptionItem("2","新增表单特性FormModelAttribute").AddToChildren(it);
                        App.CreateDescriptionItem("3","新增表单按钮特性FormButtonAttribute").AddToChildren(it);
                        App.CreateDescriptionItem("4","新增表单字段属性特性FormPropertyAttribute").AddToChildren(it);
                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);

                App.CreateCollapseItem( "1.0.8版本", () =>
                {
                    return App.CreateDescriptions("20240628 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","新增IBlogOptions配置项，可通过依赖注入获取配置内容，也可自行新增配置").AddToChildren(it);
                        App.CreateDescriptionItem("2","调整部分控件属性").AddToChildren(it);
                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);

                App.CreateCollapseItem( "1.0.7版本", () =>
                {
                    return App.CreateDescriptions("20240627 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","PageBase基类添加缓存机制").AddToChildren(it);
                        App.CreateDescriptionItem("2","调整部分控件属性").AddToChildren(it);
                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);

                App.CreateCollapseItem( "1.0.6版本", () =>
                {
                    return App.CreateDescriptions("20240627 内容", it =>
                    {
                        App.CreateDescriptionItem("序号","内容", AlignType.Center).AddToChildren(it);
                        App.CreateDescriptionItem("1","新增折叠面板控件").AddToChildren(it);
                        App.CreateDescriptionItem("2","新增描述列表控件").AddToChildren(it);
                        App.CreateDescriptionItem("3","PageBase的派生类现在支持依赖注入了").AddToChildren(it);
                        App.CreateDescriptionItem("4","新增一个配置项，用于配置接口地址").AddToChildren(it);
                    },direction: DirectionType.Horizontal);

                }).AddToChildren(items);

            }).AddToChildren(child);

            App.CreateTip("初次发布", TipType.Success, items =>
            {
                App.CreateText("1.0.1~1.0.5为初次发布，逐次更新内容从1.0.6版本开始").AddToChildren(items);

            }).AddToChildren(child);
        }),
    };
}
